package book.nettyinaction.ch05;

import io.netty.buffer.ByteBuf;

/**
 *
 * 代码清单 5-7 读取所有数据
 *
 */
public class Demo007ReadAllDatas {

    public static void main(String[] args) {
        ByteBuf buffer = null;
        while ( buffer.isReadable() ) {
            System.out.println( buffer.readByte() );
        }
    }
}
